<%@ include file="/WEB-INF/jsp/include.jsp" %>
<div id="wares_list_div" class="wares_list_in_select_form">
    <table style="height:100%" border="0" width="100%">
        <tr><td valign="top">
            <table>
                <c:forEach var="wareView" items="${waresViews}">
                    <c:set var="ware" value="${wareView.ware}"/>
                    <tr>
                        <td>
                    <span class="ware_select_link">
                        <span class="hidden_id">${ware.id}</span>
                        <span class="ware_name"><c:out value="${ware.name}"/></span>
                        <span class="hidden_span ware_measure"><c:out value="${ware.measure}"/></span>
                        (<c:out value="${wareView.wareRegionPriceStrValue}"/> / <c:out value="${wareView.wareUserPriceStrValue}"/>)
                    </span>
                        </td>
                    </tr>
                </c:forEach>
            </table>
        </td></tr>
        <tr><td valign="bottom" align="center">
        <c:if test="${not empty pageNums}">
            <table>
                <tr>
                    <c:forEach var="pageNum" items="${pageNums}">
                        <td>
                            <c:choose>
                                <c:when test="${pageNum >= 0 && pageNum != selectedPage}">
                            <span class="page_select_link"><span class="hidden_id">${pageNum}</span><b><c:out
                                    value="${pageNum + 1}"/></b></span>
                                </c:when>
                                <c:when test="${pageNum >= 0 && pageNum == selectedPage}">
                                    <c:out value="${pageNum + 1}"/>
                                </c:when>
                                <c:otherwise>...</c:otherwise>
                            </c:choose>
                        </td>
                    </c:forEach>
                </tr>
            </table>
        </c:if>
        </td></tr>
    </table>
</div>